package org.xs.big_event.utils;

import org.springframework.stereotype.Service;
import org.xs.big_event.service.ITokenRmove;

import java.util.ArrayList;

@Service
public class TokenRmove implements ITokenRmove {
    //token黑名单
    private static ArrayList<String> tokenList = new ArrayList<>();
    //将需要移除的token添加进列表
    public static void addToken(String token) {
        tokenList.add(token);
    }
    //判断token是否在列表中
    public static boolean isTokenBlackInList(String token) {
        return tokenList.contains(token);
    }
}
